import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from "react-router-dom";
import App from './App';
// import { pageResize } from '@/assets/js/common';
import './index.css';

(function (win, doc) {
    function changeSize() {
        doc.documentElement.style.fontSize = doc.documentElement.clientWidth / 3.75 + 'px';
    }
    changeSize();
    win.addEventListener('resize', changeSize, false);
})(window, document);

ReactDOM.render(
    <BrowserRouter>
        <App />
    </BrowserRouter>,
    document.getElementById('root')
)
